//
//  LZRecommendCell.m
//  collectionViewDemo
//
//  Created by langZai on 2017/3/1.
//  Copyright © 2017年 langZai. All rights reserved.
//

#import "LZRecommendCell.h"


@implementation LZRecommendCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createUI];
    }
    return self;
}


- (void)createUI {
    _myImageView = [[UIImageView alloc] init];
    [self addSubview:_myImageView];
    [_myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.width.equalTo(self);
        make.height.offset(80*ysIZE);
    }];
    
    
//    
    _mtitleLabel = [[UILabel alloc] init];
    _mtitleLabel.textAlignment = NSTextAlignmentCenter;
    _mtitleLabel.text = @"TEXTTEST";
//    _mtitleLabel.backgroundColor = [UIColor greenColor];
    [self.contentView addSubview:_mtitleLabel];
    [_mtitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_myImageView.mas_bottom);
        make.left.width.equalTo(self);
        make.bottom.equalTo(self);
    }];
    
}



@end
